package com.example.ddz;

public class Settings {
	  public static final int LEVEL_UPGRADE_EXP = 25;
	  public static int exp;
	  public static boolean isWithCardsIdenticalAllowed;
	  public static long lastNoGoldTime;
	  public static int level;
	  public static int score;
	  private static boolean soundEnabled = true;

	  static
	  {
	    score = 200;
	    level = 1;
	    exp = 0;
	    lastNoGoldTime = 0L;
	    isWithCardsIdenticalAllowed = true;
	  }

	  public static void addExp()
	  {
	    exp += 1;
	  }

	  public static void addLevel()
	  {
	    level += 1;
	  }

	  public static void addScore(int paramInt)
	  {
	    score += paramInt;
	    if (score < 0)
	      score = 0;
	  }

	  public static boolean getSoundEnabled()
	  {
	    return soundEnabled;
	  }
	public static void setExp(int paramInt)
	  {
	    exp = paramInt;
	  }

	  public static void setLastNoGoldTime(Long paramLong)
	  {
	    lastNoGoldTime = paramLong.longValue();
	  }

	  public static void toggleSound()
	  {
	    if (soundEnabled){
	    	soundEnabled = false;
	    }else{
	    	soundEnabled = true;
		      Assets.playSound(Assets.sMusicOn);
	    }
	  }
}
